import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import pinia from "../src/store/index.js" //状态管理pinia

// 统一注册所有 element-ui 图标
// import { loadIcon } from './utils/icon'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'






// createApp(App).use(router).mount('#app')
const app = createApp(App)

// loadIcon(app) 

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
  



app.use(ElementPlus)
app.use(router)
app.use(pinia)


app.mount('#app') 


